if (getIntent() != null) {
Branch branch = getIntent().getParcelableExtra(BRANCH);
if (branch != null) {
textView.setText(branch.name);
}
}
}
int branchIndex = -1;
for (int i = 0; i < branches.size(); i++) {
if (!branch.name.equals(branches.get(0).name)) {
branchIndex = i;
}
}